<?php 
	class Book extends Model{
        
        function Book() {
            parent::Model();
        }
        
      	function getBook($accessionno)
    	{	
			$this->db->where('accessionno',$accessionno);
			$query = $this->db->get('user');	
			return $query;
    	}
		
		
		/*function getWastes($catid,$type){
			// select * from waste where catid = '$catid'; // where $catid is a variable passed as a parameter
			if ($type==1)			
				$this->db->where('catid',$catid);
			else 
				$this->db->where('hazardid',$catid);
			$query = $this->db->get('waste');	
			return $query;
		}*/
	}
?>